Package org.dogtagpki.legacy.core.policy
Class GeneralNameUtil
java.lang.Object
org.dogtagpki.legacy.core.policy.GeneralNameUtil
- All Implemented Interfaces:
IGeneralNameUtil
Class that can be used to form general names from configuration file.
Used by policies and extension commands.
-
Field Summary
FieldsFields inherited from interface org.dogtagpki.legacy.policy.IGeneralNameUtil
DEF_NUM_GENERALNAMES, GENNAME_CHOICE_DIRECTORYNAME, GENNAME_CHOICE_DNSNAME, GENNAME_CHOICE_EDIPARTYNAME, GENNAME_CHOICE_INFO, GENNAME_CHOICE_IPADDRESS, GENNAME_CHOICE_OTHERNAME, GENNAME_CHOICE_REGISTEREDID, GENNAME_CHOICE_RFC822NAME, GENNAME_CHOICE_URL, GENNAME_CHOICE_X400ADDRESS, GENNAME_VALUE_INFO, NUM_GENERALNAMES_INFO, PROP_GENERALNAME, PROP_GENNAME_CHOICE, PROP_GENNAME_CHOICE_INFO, PROP_GENNAME_VALUE, PROP_GENNAME_VALUE_INFO, PROP_NUM_GENERALNAMES, PROP_NUM_GENERALNAMES_INFO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
check_GeneralNameChoice
(String generalNameChoice) Checks if given string is a valid General Name choice and returns the actual string that can be passed into form_GeneralName().static org.mozilla.jss.netscape.security.x509.GeneralName
form_GeneralName
(String generalNameChoice, String value) Form a General Name from a General Name choice and value.static org.mozilla.jss.netscape.security.x509.GeneralName
form_GeneralNameAsConstraints
(String generalNameChoice, String value) GeneralName can be used in the context of Constraints.
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
GeneralNameUtil
public GeneralNameUtil()
-
-
Method Details
-
form_GeneralNameAsConstraints
public static org.mozilla.jss.netscape.security.x509.GeneralName form_GeneralNameAsConstraints(String generalNameChoice, String value) throws EBaseException GeneralName can be used in the context of Constraints. Examples are NameConstraints, CertificateScopeOfUse extensions. In such cases, IPAddress may contain netmask component.- Throws:
EBaseException
-
form_GeneralName
public static org.mozilla.jss.netscape.security.x509.GeneralName form_GeneralName(String generalNameChoice, String value) throws EBaseException Form a General Name from a General Name choice and value. The General Name choice must be one of the General Name Choice Strings defined in this class.- Parameters:
generalNameChoice
- General Name choice. Must be one of the General Name choices defined in this class.value
- String value of the general name to form.- Throws:
EBaseException
-
check_GeneralNameChoice
Checks if given string is a valid General Name choice and returns the actual string that can be passed into form_GeneralName().- Parameters:
generalNameChoice
- a General Name choice string.- Returns:
- one of General Name choices defined in this class that can be passed into form_GeneralName().
- Throws:
EBaseException
-